package cn.kgc.mapper;

import cn.kgc.entity.School;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SchoolMapper {
    List<School> getAllSchool(@Param(value = "page")Integer page,
                              @Param(value = "limit")Integer limit,
                              @Param(value = "schoolName") String schoolName);
    Integer getCount();
    Integer addSchool(School school);
    Integer updateStudentJson(School school);
    Integer deleteStudents(Integer schId);
    Integer delSchools(@Param("schId") String schId);
}
